
DEFINE = -D LINUX

OBJS = callrecconnect.o callrecordapi.o 
	
DLL = libcallrecsdk.so
CC = arm-none-linux-gnueabi-g++
INC = -I ./include
CFLAGS = -c -Wall -O2 -rdynamic $(DEFINE) $(INC)

LIB = -lpthread -lrt

$(DLL) : $(OBJS)
	$(CC) $(OBJS) -fPIC -shared -o $(DLL)
	mv $(DLL) ./lib/
	
callrecconnect.o : ./src/callrecconnect.cpp
	$(CC) $(CFLAGS) ./src/callrecconnect.cpp
	
callrecordapi.o : ./src/callrecordapi.cpp
	$(CC) $(CFLAGS) ./src/callrecordapi.cpp	

clean:
	rm $(OBJS)
	rm ./lib/$(DLL)
